function isDateIntersection(start1, end1, start2, end2) {
    var result = false;
    if (!isNull(start1) && !isNull(end1) && !isNull(start2) && !isNull(end1)) {
        var startDate1 = new Date(start1);
        var endDate1 = new Date(end1);

        var startDate2 = new Date(start2);
        var endDate2 = new Date(end2);

        var endDiff = betweenDay(endDate1,endDate2);
        if(endDiff == 0){
            result = true;
        }else if(endDiff > 0){
            if(betweenDay(startDate2,endDate1) > 0){
                result = true;
            }
        }else{
            if(betweenDay(startDate1,endDate2) > 0){
                result = true;
            }
        }

    }

    return result;
}
